﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>后台管理系统-保理软件</title>
<meta name="keywords"  content="保理软件,保理产品" />
<meta name="description" content="设置描述..." />
<meta name="author" content="DeathGhost" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!--产品logo-->
<link rel="icon" href="images/icon/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="css/style.css" />
	<!--jQuery v3.2.1-->
<script src="javascript/jquery.js"></script>
	<!--jquery.easyui v1.3.4-->
<script src="javascript/jquery.easyui.min.js"></script>
	<!--滚动插件-->
<script src="javascript/plug-ins/customScrollbar.min.js"></script>
	<!--统计插件-->
<script src="javascript/plug-ins/echarts.min.js"></script>
	<!--弹框插件-->
<script src="javascript/plug-ins/layerUi/layer.js"></script>
	<!--HTML编辑器插件-->
<script src="editor/ueditor.config.js"></script>
	<!--HTML编辑器插件-->
<script src="editor/ueditor.all.js"></script>
	<!--分页插件-->
<script src="javascript/plug-ins/pagination.js"></script>
	<!--整个模板样式控制文件-->
<script src="javascript/public.js"></script>
<script>
	/*
	分页
	* */
	$(".pagination").createPage({
		pageCount:11,
		current:1,
		backFn:function(p){
			console.log(p);
		}
	});

</script>
<style>

</style>
</head>
<body>
<div class="main-wrap">
	<div class="side-nav">
		<div class="side-logo">
			<div class="logo">
				<span class="logo-ico">
					<i class="i-l-1"></i>
					<i class="i-l-2"></i>
					<i class="i-l-3"></i>
				</span>
				<strong>保理软件</strong>
			</div>
		</div>
		
		<nav class="side-menu content mCustomScrollbar" data-mcs-theme="minimal-dark">
			<h2>
				<a href="javascript:void(0);" class="InitialPage" onclick="addTab('待办事项','mywork.html')"><i class="icon-list-alt"></i>待办事项</a>
			</h2>
			<ul>
				<li>
					<dl>
						<dt>
							<i class="icon-wrench"></i>基础信息维护<i class="icon-angle-right"></i>
						</dt>
						<dd>
							<a href="javascript:void(0);"  target="sysmain"  onclick="addTab('客户信息维护','admin/customer/list.html')">客户信息维护</a>
						</dd>
						<dd>
							<a href="javascript:void(0);"  target="sysmain"  onclick="addTab('财务及交易信息维护','admin/fiance/list.html')">财务及交易信息维护</a>
						</dd>
					</dl>
				</li>
				<li>
					<dl>
						<dt>
							<i class="icon-legal"></i>授信管理<i class="icon-angle-right"></i>
						</dt>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('评审决议','admin/result/list.html')">评审决议</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('额度调整','admin/requota/list.html')">额度调整</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('额度查询','admin/quota/list.html')">额度查询</a>
						</dd>
					</dl>
				</li>
				<li>
					<dl>
						<dt>
							<i class="icon-inbox"></i>收费管理<i class="icon-angle-right"></i>
						</dt>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('费用调整','admin/serviceprice/list.html')">费用调整</a>
						</dd>
					</dl>
				</li>
				<li>
					<dl>
						<dt>
							<i class="icon-strikethrough"></i>应收账款管理<i class="icon-angle-right"></i>
						</dt>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('应收账款维护','admin/recbatch/list.html')">应收账款维护</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('转让入账','admin/rec/list.html')">转让入账</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('反转让','admin/retransfer/list.html')">反转让</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('资产转出及ABS','admin/recout/list.html')">资产转出及ABS</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('买方付款','admin/buyerpay/list.html')">买方付款</a>
						</dd>
					</dl>
				</li>
				<li>
					<dl>
						<dt>
							<i class="icon-asterisk"></i>融资管理<i class="icon-angle-right"></i>
						</dt>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('卖方融资','admin/finpay/list.html')">卖方融资</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('卖方还款','admin/sellerpay/list.html')">卖方还款</a>
						</dd>
					</dl>
				</li>
				<li>
					<dl>
						<dt>
							<i class="icon-search"></i>综合查询管理<i class="icon-angle-right"></i>
						</dt>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('账务汇总','admin/platformreport/list.html')">账务汇总</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('记账流水','admin/waterreport/list.html')">记账流水</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('影像附件','admin/annex/list.html')">影像附件</a>
						</dd>
					</dl>
				</li>
				<li>
					<dl>
						<dt>
							<i class="icon-sitemap"></i>权限管理<i class="icon-angle-right"></i>
						</dt>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('角色管理','admin/role/list.html')">角色管理</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('用户管理','admin/account/list.html')">用户管理</a>
						</dd>
					</dl>
				</li>
				<li>
					<dl>
						<dt>
							<i class="icon-cogs"></i>系统管理<i class="icon-angle-right"></i>
						</dt>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('文件模板维护','admin/template/list.html')">文件模板维护</a>
						</dd>
						<dd>
							<a href="javascript:void(0);" target="sysmain" onclick="addTab('平台计划任务','admin/task/list.html')">平台计划任务</a>
						</dd>
					</dl>
				</li>
			</ul>
		</nav>
		<footer class="side-footer">© jiudingkeji 版权所有</footer>
	</div>
	<div class="content-wrap">
		<!--header头部菜单-->
		<header class="top-hd">
			<div class="hd-lt">
				<a class="icon-reorder" title="显示隐藏功能菜单"></a>
			</div>
			<div class="hd-rt">
				<ul>
					<li class="userJurisdiction">
						<a style="padding: 20px 0;"><i class="icon-user"></i>管理员:<em>保理软件</em></a>
						<ul class="popup_user">
							<li><a href="javascript:void(0);">保理软件</a></li>
							<li class="divider"></li>
							<li class="nav-header">系统操作</li>
							<li><a href="javascript:void(0);" onclick="ModifyPassword()"><i class="icon-key"></i> 修改密码</a></li>
							<li><a href="javascript:void(0);" id="JsSignOut"><i class="icon-signout"></i> 安全退出</a></li>
						</ul>
					</li>
				</ul>
				<div class="mask"></div>
			</div>
		</header>
		<!--软件主体内容-->
		<main class="main-cont1 content">
			<!--开始::内容-->
			<div id="tt" class="easyui-tabs main-cont">
				<div title="待办事项" class="icon-mini-refresh">
					<iframe scrolling="auto" id="mywork" frameborder="0"  src="mywork_test.html" style="width:100%;height:100%;"></iframe>
				</div>

			</div>
			<!--开始::结束-->
		</main>
		<!--底部版权申明-->
		<footer class="btm-ft">
			<p class="clear">
				<span class="fl">©Copyright 2017 <a href="#" title="DeathGhost" target="_blank">保理软件</a></span>
				<span class="fr text-info">
					<em class="uppercase">
						<i class="icon-user"></i>
						jiudingkeji
					</em> |
					<em class="uppercase"><i class="icon-home"></i>
						<a href="javascript:void(0);" target="_blank">官网</a>
					</em>
				</span>
			</p>
		</footer>
	</div>
</div>
<div id="mm" class="easyui-menu" style="width:120px;">
	<div id="mm-tabclosrefresh" data-options="name:6">刷新</div>
	<div id="mm-tabclose" data-options="name:1">关闭</div>
	<div id="mm-tabcloseall" data-options="name:2">全部关闭</div>
	<div id="mm-tabcloseother" data-options="name:3">除此之外全部关闭</div>
	<div class="menu-sep"></div>
	<div id="mm-tabcloseright" data-options="name:4">当前页右侧全部关闭</div>
	<div id="mm-tabcloseleft" data-options="name:5">当前页左侧全部关闭</div>
</div>
<div id="indexmm" class="easyui-menu" style="width:120px;">
	<div onclick="tabclosrefresh('mywork.html')">刷新</div>
	<div class="menu-sep"></div>
	<div onclick="tabcloseright()">当前页右侧全部关闭</div>
	<div onclick="tabcloseright()">除此之外全部关闭</div>
</div>
<!--修改密码弹框-->
<div id="ModifyPassword" class="ModifyPassword">
	<h2 class="popup__tit">修改密码</h2>
	<div class="m-telcheck-container">
		<div class="inputbox">
			<div class="u-logo">
				<i class="icon-lock icon-2x"></i>
			</div>
			<div class="u-input box f-f0">
				<input type="text" id="passwordID" placeholder="请输入新密码  (长度 6 ~ 18 位)" name="passwordID" onkeypress="if(event.keyCode==13) confirmBtn();">
			</div>
		</div>
		<div class="inputbox">
			<div class="u-logo">
				<i class="icon-lock icon-2x"></i>
			</div>
			<div class="u-input box f-f0">
				<input type="text" id="VerificationPassword" placeholder="请确认新密码  (长度 6 ~ 18 位)" name="VerificationPassword" onkeypress="if(event.keyCode==13) confirmBtn();">
			</div>
		</div>
		<div class="m-error-box" id="errorMs-box">
			<i class="icon-info-sign"></i>
			<span class="ferrorhead f-ib" id="errorMs">两次输入密码不一致</span>
		</div>
		<div class="u-nextbtn u-btn f-f0" onclick="confirmBtn()" onkeypress="if(event.keyCode==13) confirmBtn();">确定</div>
	</div>
</div>
<script>

	/*对子页面Iframe的操作*/
	function getFindIframe(curTabTitle,type,thisTitle) {
		var tt 					= $("#tt");
		var curTabIndex 		= tt.tabs("getTabIndex", tt.tabs("getTab", curTabTitle));
		switch (type){
			case 'Close':
				tt.tabs("close", curTabIndex);
				return false;
				loadiframe();
				break;
			case 'reload':
				tt.tabs("getTab", curTabTitle).panel("refresh");
				return false;
				loadiframe();
				break;
			case 'CloseReload':
				tt.tabs("getTab", thisTitle).panel("refresh");
				tt.tabs("close", curTabIndex);
				loadiframe();
				return false;
				break;
		}
	}
	window.onresize = function(){
		loadiframe();
		sizeHasBeenChanged()
	}
	/*
	 自定义工具栏
	 * */
	$('body').on('contextmenu','li',function(e){
		var thisText = $.trim($(this).find('.tabs-title').text());
		if(thisText == '待办事项'){
			$('#indexmm').menu('show', {
				left: e.pageX,
				top: e.pageY
			});
		}else{return false}
	});
	$(document).ready(function () {
		//监听右键事件，创建右键菜单
		$('#tt').tabs({
			onContextMenu: function (e, title, index) {
				e.preventDefault();
				if (index > 0) {
					$('#mm').menu('show', {
						left: e.pageX,
						top: e.pageY
					}).data("tabTitle", title);
				}
			}
		});
		//右键菜单click
		$("#mm").menu({
			onClick: function (item) {
				closeTab(this, item.name);
			}
		});
	});
	//删除Tabs
	function closeTab(menu, type) {
		var allTabs = $("#tt").tabs('tabs');
		var allTabtitle = [];
		$.each(allTabs, function (i, n) {
			var opt = $(n).panel('options');
			if (opt.closable)
				allTabtitle.push(opt.title);
		});
		var curTabTitle = $(menu).data("tabTitle");
		var curTabIndex = $("#tt").tabs("getTabIndex", $("#tt").tabs("getTab", curTabTitle));
		switch (type) {
			case 1:
				$("#tt").tabs("close", curTabIndex);
				return false;
				break;
			case 2:
				for (var i = 0; i < allTabtitle.length; i++) {
					$('#tt').tabs('close', allTabtitle[i]);
				}
				break;
			case 3:
				for (var i = 0; i < allTabtitle.length; i++) {
					if (curTabTitle != allTabtitle[i])
						$('#tt').tabs('close', allTabtitle[i]);
				}
				$('#tt').tabs('select', curTabTitle);
				break;
			case 4:
				for (var i = curTabIndex; i < allTabtitle.length; i++) {
					$('#tt').tabs('close', allTabtitle[i]);
					console.log(allTabtitle[i])
				}
				$('#tt').tabs('select', curTabTitle);
				break;
			case 5:
				for (var i = 0; i < curTabIndex-1; i++) {
					$('#tt').tabs('close', allTabtitle[i]);
				}
				$('#tt').tabs('select', curTabTitle);
				break;
			case 6: //刷新
				var panel = $("#tt").tabs("getTab", curTabTitle).panel("refresh");
				loadiframe();
				break;
		}
	}
	/*
	当前页右侧全部关闭
	* */
	function tabcloseright(){
		var allTabs = $("#tt").tabs('tabs');
		var allTabtitle = [];
		$.each(allTabs, function (i, n) {
			var opt = $(n).panel('options');
			if (opt.closable)
				allTabtitle.push(opt.title);
		});
		var curTabIndex = $("#tt").tabs("getTabIndex", $("#tt").tabs("getTab", 20));
		for (var i = curTabIndex; i < allTabtitle.length; i++) {
			$('#tt').tabs('close', allTabtitle[i]);
		}
	}
	/*
	刷新
	* */
	function tabclosrefresh(url){
		$('#mywork').attr('src',url)
	}
</script>
</body>
</html>
